import java.util.Scanner;

public class Test2_2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        // 提示用户输入
        System.out.println("Enter the radius and length of a cylinder :");
        double radius, height;
        // 分别读取两个变量
        radius = input.nextDouble();
        height = input.nextDouble();
        double area = radius * radius * Math.PI;
        double volume = area * height;
        // 格式化输出，保留小数点位数
        System.out.printf("The area is %.4f\n", area);
        System.out.printf("The volume is %.1f", volume);
    }
}
